package com.huayi.server.Dao;

import com.huayi.server.Entity.AdminEntity;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by mac on 2017/8/29.
 */
@Component
public class AdminDao extends BaseDao{

    @Autowired
    AdminEntity adminEntity;


    Transaction transaction;
    Session session;

    public int addAdmin(AdminEntity entity){
        return 0;
    }

    public AdminEntity getAdminInfo(String username){
        return null;
    }
}
